Angular 4: Pocket Primer by Oswald Campesato
Author:Oswald Campesato
Language: eng
Format: mobi, epub
Publisher: Mercury Learning and Information
Published: 2017-08-14T16:00:00+00:00
LISTING 5.9: user.component.ts
The contents of Listing 5.9 are straightforward: there is a User class comprising the fields fname and lname for the first name and last name, respectively, for each new user.
Finally, we need to update the contents of app.module.ts, as shown in Listing 5.10, where the modified contents are shown in bold.
LISTING 5.10: app.module.ts
As you can see, Listing 5.10 contains two new import statements so that the custom components MyPipe and User can be referenced in the declarations property.
Launch the application and after a few moments you will see the following in a browser session:
Complete List of Users:
Jane-Smith
John-Stone
Dave-Jones
Rick-Heard
Filtered List of Users:
Jane-Smith
John-Stone
Figure 5.2 displays the output from launching this Angular application and filtering based on the users whose first name starts with the capital letter J.
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Hello! Python by Anthony Briggs(9926)
OCA Java SE 8 Programmer I Certification Guide by Mala Gupta(9802)
The Mikado Method by Ola Ellnestam Daniel Brolund(9787)
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(8309)
Sass and Compass in Action by Wynn Netherland Nathan Weizenbaum Chris Eppstein Brandon Mathis(7789)
Test-Driven iOS Development with Swift 4 by Dominik Hauser(7771)
Grails in Action by Glen Smith Peter Ledbrook(7705)
The Well-Grounded Java Developer by Benjamin J. Evans Martijn Verburg(7566)
Windows APT Warfare by Sheng-Hao Ma(6929)
Layered Design for Ruby on Rails Applications by Vladimir Dementyev(6663)
Blueprints Visual Scripting for Unreal Engine 5 - Third Edition by Marcos Romero & Brenden Sewell(6525)
Secrets of the JavaScript Ninja by John Resig Bear Bibeault(6423)
Kotlin in Action by Dmitry Jemerov(5073)
Hands-On Full-Stack Web Development with GraphQL and React by Sebastian Grebe(4323)
Solidity Programming Essentials by Ritesh Modi(4054)
Functional Programming in JavaScript by Mantyla Dan(4044)
WordPress Plugin Development Cookbook by Yannick Lefebvre(3844)
Unity 3D Game Development by Anthony Davis & Travis Baptiste & Russell Craig & Ryan Stunkel(3788)
The Ultimate iOS Interview Playbook by Avi Tsadok(3765)
